<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Coupons
 *
 * @property int $id
 * @property string|null $name 优惠券名称
 * @property float $money 优惠券金额
 * @property string|null $give_start_time 发放开始时间
 * @property string|null $give_end_time 发放结束时间
 * @property string|null $type 优惠券类型 direct 直接优惠/satisfy 满金额优惠
 * @property float $satisfy_money 满足优惠需要的金额
 * @property int $effective_time 有效时间（天）
 * @property string|null $remark 备注
 * @property int $status 状态 0：停用 1：启用
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property int $num 发放数量
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Coupons onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereEffectiveTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereGiveEndTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereGiveStartTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereRemark($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereSatisfyMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Coupons withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Coupons withoutTrashed()
 * @mixin \Eloquent
 * @property string|null $start_time 开始时间
 * @property string|null $end_time 结束时间
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereEndTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereStartTime($value)
 * @property string|null $use_scope 使用范围
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereUseScope($value)
 * @property int $img_id 图片
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Coupons whereImgId($value)
 */
class Coupons extends Model
{
    protected  $table = 'coupons';
    use SoftDeletes;
}
